<?php
class Admin_Form_Searchtin extends Zend_Form{
    
    public function init(){
        $this->setAction('main')->setMethod('post');
        $tieude=new Zend_Form_Element_Text('tieude');        
        $tieude->setAttrib('size','26')->setAttrib('class','form-control')        
            ->setAttrib('placeholder','Tiêu đề')
            ->setAttrib('style','');
        
        $danhmuc1=new Zend_Form_Element_Select('danhmuc1');
        $danhmuc1->setAttrib('class','form-control');
        
        $danhmuc2=new Zend_Form_Element_Select('danhmuc2');
        $danhmuc2->setAttrib('class','form-control');
        
        //$hienthi=new Zend_Form_Element_Select('hienthi');
        //$hienthi->setAttrib('class','form-control')->setMultiOptions(array('1'=>'Hiển thị', '0'=>'Ẩn'));
        
        $sm=new Zend_Form_Element_Submit('ok');
        $sm->setAttrib('class','btn');        
              
        $this->setDecorators(array(
                                       array('viewScript',
                                       array('viewScript'=>'Form_Searchtin.phtml'),
                                )));                                   
                                                   
        $tieude->removeDecorator('HtmlTag')
                ->removeDecorator('Label');                
        $danhmuc1->removeDecorator('HtmlTag')
                ->removeDecorator('Label');
        $danhmuc2->removeDecorator('HtmlTag')
                ->removeDecorator('Label');
        //$hienthi->removeDecorator('HtmlTag')->removeDecorator('Label');
        $sm->removeDecorator('DtDdWrapper');
                      
        $this->addElements(array($tieude,$danhmuc1,$danhmuc2,$sm));                                                  
    }
}